package org.jmat.domain.entities.not.generated;

import java.util.Date;

import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.jmat.domain.entities.ToHaveToStringBuilder;

public class Car extends ToHaveToStringBuilder{

	private int id;
	private String model;
	private int power;
	private Date manufactureDate;
	
	public Car() {
		super();
	}

	public Car(int id, Date manufactureDate, String model, int power) {
		super();
		this.id = id;
		this.manufactureDate = manufactureDate;
		this.model = model;
		this.power = power;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public int getPower() {
		return power;
	}

	public void setPower(int power) {
		this.power = power;
	}

	@XmlJavaTypeAdapter(DateAdapter.class)
	public Date getManufactureDate() {
		return manufactureDate;
	}

	public void setManufactureDate(Date manufactureDate) {
		this.manufactureDate = manufactureDate;
	}
	
	
}
